package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (Customer)表实体类
 *
 * @author makejava
 * @since 2020-12-01 22:17:46
 */
@Data
@TableName("customer")
public class Customer extends Model<Customer> {
    //客户主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //客户姓名
    private String name;
    //手机号
    private String phone;
    //创建时间
    private Date createtime;
    //身份证
    private String idcard;
    //积分
    private String score;
    //车牌号
    private String car;
    //性别
    private String sex;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}